ClutterClickGesture is a new subclass of ClutterGesture and implements
the same functionality as the TapAction and ClutterClickAction did,
which is why those will get removed. So move to ClutterClickGesture here
for the tap gesture.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2853>
this._activePage = null;
- let tapAction = new Clutter.TapAction();
- tapAction.connect('tap', this._showPrompt.bind(this));
- this.add_action(tapAction);
+ const clickGesture = new Clutter.ClickGesture();
+ clickGesture.connect('recognize', () => this._showPrompt());
+ this.add_action(clickGesture);
// Background
this._backgroundGroup = new Clutter.Actor();